package com.heima.zuoye.day02.yuangong;

public class Clerk extends Employee {
    private Clerk b;

    public Clerk() {
    }

    public Clerk(String name, String workId, String dept, Manager b) {
        super(name, workId, dept);
    }

    public Clerk getB() {
        return b;
    }

    public void setB(Clerk b) {
        this.b = b;
    }

    @Override
    public void showMsg() {
        System.out.println("经理：工号为 "+getWorkId()+ ",名字为 "+ getName() +"，部门为 "+ getDept() +", 他的职员名字是 "+getB().getName());

    }

}
